import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    update_pwd_dialog: false,
    gate_info_dialog: false,
    gate_qr_code_dialog: false
  },
  mutations: {
    changeUpdatePwdDialog(state, flag) {
      state.update_pwd_dialog = flag;
    },
    changeGateInfoDialog(state, flag) {
      state.gate_info_dialog = flag;
    },
    changeGateQrCodeDialog(state, flag) {
      state.gate_qr_code_dialog = flag;
    }
  },
  actions: {},
  modules: {}
});
